<include file="Layout/header" />
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="{:U('Admin/Index/welcome')}">首页</a> </li>
    <li class="active">充值账户列表</li>
  </ul>
</div>
<div class="page-content">
  <div class="page-header">
    <h1> 会员管理 <small> <i class="icon-double-angle-right"></i> 充值账户列表 </small> </h1>
  </div>
  <div class="row">
    
    <div class="col-xs-12">
    <a class="btn btn-primary" href="{:U('Admin/Member/cash_list_edit')}" style="margin-bottom: 5px;"><i class="icon-plus align-top bigger-125"></i>新增帐户</a>
      <div class="table-responsive">
        <table id="example-advanced" class="table table-striped table-bordered table-hover">
          <thead>
            <tr>
           
            
              <th>排序</th>
              <th>名称</th>
              <th>账户</th>
              
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
        
           <foreach name="list" item="val">
               <tr>
             
                <td>
                {$val.sort}
                </td> 
                <td class="hidden-480">
                {$val.name}</td>
                <td >
                {$val.code}
				</td>
               
                <td><div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                 <if condition="$val.isShow eq '1'"> <a class="btn btn-xs btn-inverse" onClick="bank_stop(this,{$val.id})" href="javascript:;"> <i class=" icon-ban-circle bigger-120"></i> </a>
                 <elseif condition="$val.isShow eq '0'" />
                      <a class="btn btn-xs btn-success" onClick="bank_start(this,{$val.id})" href="javascript:;"> <i class="icon-ok bigger-120"></i> </a> </if>
                
                <a class="btn btn-xs btn-info" href="{:U('Admin/Member/cash_list_edit')}/id/{$val.id}"> <i class="icon-edit bigger-120"></i> </a> 
                <a class="btn btn-xs btn-danger" onClick="bank_del(this,{$val.id})"> <i class="icon-trash bigger-120"></i> </a> </div></td>
              </tr>
              
               
              </foreach>
          
            </tbody>
           <input type="hidden" value="{:U('Admin/Member/cash_list')}" id="del_cat">
        </table>
      
      </div>
  
    </div>
    <div></div>
  </div>
</div>
<include file="Layout/js"/> 
 <link rel="stylesheet" href="__ADMIN_CSS__/jquery.treetable.css" />
 <script src="__ADMIN_JS__/jquery.treetable.js"></script>
 <script src="__ADMIN_JS__/jquery.dataTables.min.js"></script> 
 <script src="__ADMIN_JS__/jquery.dataTables.bootstrap.js"></script> 
 <script src="__ADMIN_JS__/bootbox.js"></script> 

<script type="text/javascript"> 
     /* 删除*/
function bank_del(obj,id){
	   var host= $("#del_cat").val();
	  
      bootbox.setLocale("zh_CN");  
      bootbox.confirm("确定删除该账户?", function(result) {  
        if (result) {  
           $.ajax({
			 url:host,
			type:"POST",
			dataType:"json",
			data:{id:id},
			success: function(data){
 				if(data.status==0){
 				bootbox.alert(data.info);	
					}else{
					location.reload();

				$(obj).parents("tr").remove();		
						}
				}
			})
		
		 
        }  
      });  
 
}
</script>
</body>
</html>